package com.isnmp.nms.framework.discover.rstype;

import com.isnmp.common.snmp.mib.MibProcessorEntry;
import com.isnmp.nms.framework.discover.ResourceInfo;

public class CPUType extends SNMPTableBasicMothType {
    public CPUType() {
        setResoureTypeName(Messages.getString("CPUType.0"));
    }

    public Class getORMappingClass() {
        return MibProcessorEntry.class;
    }

    public String getResourceSearchMoth() {
        return Messages.getString("CPUType.1");
    }

    public ResourceInfo tableMibInfoToResouce(Object paramObject) {
        ResourceInfo resourceInfo = new ResourceInfo();
        MibProcessorEntry proEntity = (MibProcessorEntry) paramObject;
        resourceInfo.setResourceRSIDValue(proEntity.getTableIndexOID());
        resourceInfo.setResourceName(Messages.getString("CPUType.3") + proEntity.getTableIndexOID());
        resourceInfo.setResourceParam(Messages.getString("CPUType.4") + proEntity.getHrProcessorFrwID());
        resourceInfo.setResrouceRemarks(getTypeDesc());
        
        System.out.println(proEntity.toString());
        return resourceInfo;
    }
}